//---------------------------------------------------------------------------

#ifndef DPCnsRecH
#define DPCnsRecH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "DialPad.h"
#include "PHDS.h"
#include <ExtCtrls.hpp>
#include <Buttons.hpp>
#include "PHEdit.h"
#include "PHLabel.h"
#include "PHGridEd.h"
#include <Grids.hpp>
#include "stdm.h"
#include "PHCombo.h"
#include "PHCheck.h"
#include "DIALPAD.h"
//---------------------------------------------------------------------------
class TDPCnsRec1 : public TDiPad
{
__published:	// IDE-managed Components
        TBitBtn *BitBtn1;
        TBitBtn *BitBtn3;
        PHLabel *PHLabel1;
        PHEdit *PHEdit1;
        PHGridEdit *PHGridEdit1;
        PHDataSource *DSRecebe;
        TBitBtn *BitBtn2;
        PHLabel *PHLabel2;
        PHEdit *PHEdit2;
        PHLabel *PHLabel3;
        PHEdit *PHEdit3;
 PHCheckBox *PHCheckBox1;
        void __fastcall BitBtn3Click(TObject *Sender);
        void __fastcall DSRecebeAfterOpen(TObject *Sender);
        void __fastcall BitBtn1Click(TObject *Sender);
        void __fastcall PHEdit1Change(TObject *Sender);
        void __fastcall PHEdit3Change(TObject *Sender);
        void __fastcall PHComboBox1Change(TObject *Sender);
        void __fastcall FormShow(TObject *Sender);
        void __fastcall PHGridEdit1DblClick(TObject *Sender);
        void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
        void __fastcall PHGridEdit1KeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
        void __fastcall PHGridEdit1DrawGridCell(int Row, int Col,
          TColor &CorTexto, TColor &CorFundo, bool &AplicarCoresSelecao,
          PHDataSource *PHDS, AnsiString &Conteudo);
 void __fastcall PHCheckBox1Click(TObject *Sender);

private:	// User declarations
 void __fastcall LimpaGrid(void);
 TStringList *MovCli;

 class MOVCLI:TObject
  {
   public:
    AnsiString Cliente;
    int Data;
    AnsiString Documento;
    AnsiString Historico;
    int Vencimento;
    double Valor;
    double ValorPago;
    int Tipo;
    int Lancamento;
  } *MC;
 AnsiString GE;

public:		// User declarations
 __fastcall TDPCnsRec1(TComponent* Owner);
 void __fastcall Processamento(TObject *Sender);

 struct RECEB *Rb;
 bool Alterar;
 int DataAlterar;
 int LancamentoAlterar;
 UINT DataFinal;
 int Vencidas;
 int Vencendo;
 bool MostraResumo;
};
//---------------------------------------------------------------------------
extern PACKAGE TDPCnsRec1 *DPCnsRec1;
//---------------------------------------------------------------------------
#endif
